package com.yang.SpringTest.annotation.lookupLearn;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * <p>【spring】@Lookup注解学习</p>
 * 定义一个原型 Bean
 *
 * @author By: chengxuyuanshitang <br>
 * @Package: com.yang.SpringTest.annotation.lookupLearn <br>
 * @CreateTime: 2024-11-20 13:58 <br>
 */
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class DemoPrototypeBean {
    public void doSomething() {
        System.out.println("DemoPrototypeBean 已经开始工作... 。toString方法输出：" + this.toString());
    }
}